<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
define('SITE_NAME','小龙虾');
define('HTTP_SCHEME',isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on'?'https':'http');
define('DOMAIN_SUFFIX',substr(strstr($_SERVER['HTTP_HOST'],'.'),1));

// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');

// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);

header("Content-type: text/html; charset=utf-8");
// 定义应用目录

define('STATIC_VERSION','2016040103');//静态资源版本号

define('ROOT_PATH', dirname(__FILE__).'/');
define('APP_PATH',ROOT_PATH.'Application/');
define('SITE_URL',HTTP_SCHEME.'://'.strip_tags($_SERVER['HTTP_HOST']));
define('RUNTIME_PATH',   './Runtime/');   // 系统运行时目录
//公共模板路径
define('COMMON_TPL_PATH', '../../Common/View/');

define('IMG_STORE_PATH','Upload/Data/Admin/');//图片库图片路径

// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';

// 亲^_^ 后面不需要任何代码了 就是如此简单